<%@ page contentType="text/html;charset=UTF-8" %>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>${sessionScope.msg}</title>
    <style>
        h1{
            font-size: 100px;
            text-align: center;
            margin-top: 200px;
        }
    </style>
</head>
<body>

<h1>${sessionScope.msg},<span>3</span>秒后返回</h1>


<script>

    setInterval(function () {
        let elementsByTagNameElement = document.getElementsByTagName("span")[0];
        elementsByTagNameElement.innerHTML -= 1;
        if(elementsByTagNameElement.innerHTML == 0 ){
            window.history.go(-1);
        }
    },1000)
</script>
</body>
</html>
</body>
</html>
